/**
 * @Copyright 
 * @Project inetdisk
 * @CreateTime 2015-11-4 上午9:56:28
 */
package ren.wxyz.inetdisk.service.impl;

import java.io.IOException;
import java.io.OutputStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ren.wxyz.inetdisk.dao.FileStorageDao;
import ren.wxyz.inetdisk.service.FileService;

/**
 * <p>
 * 文件服务的实现
 * </p>
 * @Author wxyz
 * @CreateTime 2015-11-4 上午9:56:28 init class
 */
@Service
public class FileServiceImpl implements FileService {

	@Autowired
	private FileStorageDao fileStorage;
	
	@Override
	public void download(OutputStream out, String storagePath) throws IOException {
		fileStorage.readTo(out, storagePath);
	}

}
